package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.VitaeEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author v2tila on 21:14 2019/3/31
 */

public interface VitaeJPA extends JpaRepository<VitaeEntity, Integer>, JpaSpecificationExecutor<VitaeEntity> {
    List<VitaeEntity> findByUniqueId(String uniqueId);

    @Transactional
    void deleteById(Integer id);

    VitaeEntity findByTitle(String title);


}
